﻿<%@ Page Title="仓库类型" Language="C#" MasterPageFile="~/User/User.Master" AutoEventWireup="true" CodeBehind="CS_CKLX_Query.aspx.cs" Inherits="CoolERP_Web.User.CS_CKLX_Query" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
        <td class=tbHead_L></td>
        <td class=tbHead_M><div><b>仓库类型列表</b></div></td>
        <td class=tbHead_R></td>
    </tr>
    <tr>
        <td class=tbBody_L></td>
        <td class=tbBody_M>
        <ul class=tags style="width:500px;">
            <li class=liRight><asp:ImageButton ID="btnAdd" runat="server" ImageUrl="~/Images/Common/btn_add0.png" OnClick="btnAdd_Click" /></li>
        </ul>
        <asp:GridView ID="GridView1" Width=500px DataKeyNames="BH" runat="server" CssClass="grvCSS" AutoGenerateColumns="False" AllowPaging="True"
            PageSize=100 ClientIDMode=Static OnRowDeleting="GridView1_RowDeleting" OnRowEditing="GridView1_RowEditing" 
            OnRowUpdating="GridView1_RowUpdating" OnRowCancelingEdit="GridView1_RowCancelingEdit" OnPreRender="GridView1_PreRender">
            <Columns>
                <asp:TemplateField HeaderText="编号">
                    <ItemTemplate><%# Eval("BH") %></ItemTemplate>
                    <EditItemTemplate><%# Eval("BH")%></EditItemTemplate>
                    <FooterTemplate><asp:TextBox ID="txtBH" runat="server" Width=50px MaxLength=1/></FooterTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="名称">
                    <ItemTemplate><%# Eval("MC")%></ItemTemplate>
                    <EditItemTemplate><asp:TextBox ID="txtMC" runat="server" Text='<%# Eval("MC")%>'/></EditItemTemplate>
                    <FooterTemplate><asp:TextBox ID="txtMC" runat="server"/></FooterTemplate>
                </asp:TemplateField>
                <asp:TemplateField ShowHeader="False">
                    <ItemTemplate>
                    <asp:ImageButton ID="btnEdit" runat="server" ImageUrl="~/Images/Common/btn_edit0.png" CommandName="Edit" />&nbsp;
                    <asp:ImageButton ID="btnDel" runat="server" ImageUrl="~/Images/Common/btn_del0.png" CommandName="Delete" OnClientClick="return confirm('确定要删除吗？');" /></ItemTemplate>
                    <EditItemTemplate><asp:HiddenField ID="hidField" runat=server />
                    <asp:ImageButton ID="btnSave" runat="server" ImageUrl="~/Images/Common/btn_save0.png" CommandName="Update" />&nbsp;
                    <asp:ImageButton ID="btnCancel" runat="server" ImageUrl="~/Images/Common/btn_cancel0.png" CommandName="Cancel" />
                    </EditItemTemplate>
                    <FooterTemplate>
                        <asp:ImageButton ID="btnSave" runat="server" ImageUrl="~/Images/Common/btn_save0.png" OnClick="btnSave_Click" />&nbsp;
                        <asp:ImageButton ID="btnCancel" runat="server" ImageUrl="~/Images/Common/btn_cancel0.png" OnClick="btnCancel_Click" />
                    </FooterTemplate>
                </asp:TemplateField>
            </Columns>
            <PagerSettings Visible=false />
            </asp:GridView>
        </td>
        <td class=tbBody_R></td>
    </tr>
    <tr>
        <td class=tbFoot_L></td>
        <td class=tbFoot_M></td>
        <td class=tbFoot_R></td>
    </tr>
</table>
</asp:Content>
